package com.ruoyi.cms.blog.mapper;

import com.ruoyi.cms.blog.domain.CmsUserAmountLog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户消费记录Mapper接口
 *
 * @author ruoyi
 * @date 2025-04-13
 */
@Mapper
public interface CmsUserAmountLogMapper {
    /**
     * 查询用户消费记录
     *
     * @param id 用户消费记录主键
     * @return 用户消费记录
     */
    CmsUserAmountLog selectCmsUserAmountLogById(Long id);

    /**
     * 查询用户消费记录列表
     *
     * @param cmsUserAmountLog 用户消费记录
     * @return 用户消费记录集合
     */
    List<CmsUserAmountLog> selectCmsUserAmountLogList(CmsUserAmountLog cmsUserAmountLog);

    /**
     * 新增用户消费记录
     *
     * @param cmsUserAmountLog 用户消费记录
     * @return 结果
     */
    int insertCmsUserAmountLog(CmsUserAmountLog cmsUserAmountLog);

    /**
     * 修改用户消费记录
     *
     * @param cmsUserAmountLog 用户消费记录
     * @return 结果
     */
    int updateCmsUserAmountLog(CmsUserAmountLog cmsUserAmountLog);

    /**
     * 删除用户消费记录
     *
     * @param id 用户消费记录主键
     * @return 结果
     */
    int deleteCmsUserAmountLogById(Long id);

    /**
     * 批量删除用户消费记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteCmsUserAmountLogByIds(Long[] ids);
}
